package com.ruoyi.customer.service;

import com.ruoyi.common.core.page.Pages;
import com.ruoyi.common.ehance.MyService;
import com.ruoyi.customer.domain.TMesCustomer;

import java.util.List;

/**
 * 客户Service接口
 *
 * @author ruoyi
 * @date 2024-05-24
 */
public interface ITMesCustomerService extends MyService<TMesCustomer> {
    /**
     * 查询客户
     *
     * @param id 客户主键
     * @return 客户
     */
    public TMesCustomer selectTMesCustomerById(Long id);

    /**
     * 查询客户列表
     *
     * @param tMesCustomer 客户
     * @return 客户集合
     */
    public List<TMesCustomer> selectTMesCustomerList(TMesCustomer tMesCustomer);

    /**
     * 新增客户
     *
     * @param tMesCustomer 客户
     * @return 结果
     */
    public TMesCustomer insertTMesCustomer(TMesCustomer tMesCustomer);

    /**
     * 修改客户
     *
     * @param tMesCustomer 客户
     * @return 结果
     */
    public TMesCustomer updateTMesCustomer(TMesCustomer tMesCustomer);

    /**
     * 批量删除客户
     *
     * @param ids 需要删除的客户主键集合
     * @return 结果
     */
    public int deleteTMesCustomerByIds(Long[] ids);

    /**
     * 删除客户信息
     *
     * @param id 客户主键
     * @return 结果
     */
    public int deleteTMesCustomerById(Long id);

    int delete(TMesCustomer tMesCustomer);

    Pages<TMesCustomer> queryPage(TMesCustomer tMesCustomer);

    String generNo(String kh, String tbName);

    String generNo2(String prefix, String split, String tProduct);

}
